package com.cssy.yd.logic.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.transaction.annotation.Transactional;

import com.cssy.base.service.IBaseService;
import com.cssy.yd.logic.entity.LogicWhCheckDO;
import com.cssy.yd.logic.entity.LogicWhCheckItemDO;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;
import com.plat.helper.SearchResult;
import com.yuendong.sy.exception.SyCodeException;

public interface ILogicWHCheckService extends IBaseService<LogicWhCheckDO> {

	public SearchResult findItemListByExample(SearchConditions scs) throws SyBaseException;
	
	public Integer deleteItem(String id) throws SyBaseException;
	
	public Integer updateItem(LogicWhCheckItemDO t) throws SyBaseException;
	
	public LogicWhCheckItemDO saveItem(LogicWhCheckItemDO t) throws SyBaseException;
	
	public LogicWhCheckItemDO findItemListById(String id) throws SyBaseException;
	
	public List<LogicWhCheckItemDO> findItemListByCheckID(String checkID) throws SyBaseException;
	
	public LogicWhCheckDO findLastedByOricode(String oriCode) throws SyBaseException;
	
	@Transactional
	public void commit(HttpServletRequest request,LogicWhCheckDO curAP)throws SyBaseException,SyCodeException;
	
	/**
	 * 查询盘点明细
	 * @param scs
	 * @return
	 */
	public SearchResult findListDetatils(SearchConditions scs);
	
}
